/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* background-color: #f5f5f5; */
}

/* Navbar Styles */
nav {
     background-color: #589ee4;
    /* color: white; */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav img.logo {
    height: 40px;
    width: auto;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    padding: 5px;
    border: none;
    border-radius: 5px;
}

.profile-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-photo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

/* Main Layout */
main {
    display: flex;
    gap: 1rem;
    flex-grow: 1;
    padding: 1rem;
}

/* Sidebar Styles */
aside {
    flex: 0 0 20%;
    /* background-color: #ffffff; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.sidebar a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 15px;
    color: #333;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #007bff;
    color: white;
}

/* Middle Section */
.midle {
    flex: 1;
    /* background-color: #ffffff; */
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    /* background-color: #ffffff; */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    flex: 1 1 calc(50% - 1rem);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.button6 {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button6:hover {
    background-color: #0056b3;
}

/* Right Section */
.right {
    flex: 0 0 20%;
     background-color: #ffffff;  
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

/* Responsive Design: Medium Screens */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    aside, .midle, .right {
        width: 100%;
    }

    .cards {
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
    }
}

/* Responsive Design: Small Screens */
@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .search-bar {
        justify-content: center;
    }

    .profile-area {
        justify-content: center;
    }
}

/* General reset for box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styling for the section container */
.sellection {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.sellection-content {
    flex: 1;
    min-width: 300px;
}

.sellection-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.sellection-content p {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.sellection-content .button1 {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sellection-content .button1:hover {
    background-color: #0056b3;
}

.project-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive grid for services */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.col-md-4 {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sellection {
        flex-direction: column;
        text-align: center;
    }

    .sellection-content {
        order: 2;
    }

    .project-image {
        order: 1;
    }

    .sellection-content h1 {
        font-size: 1.5rem;
    }

    .sellection-content p {
        font-size: 0.9rem;
    }

    .button1 {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .sellection-content h1 {
        font-size: 1.25rem;
    }

    .sellection-content p {
        font-size: 0.8rem;
    }

    .button1 {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
